#include"my_list.hpp"

void test1()
{
	du::list<int> l;
	l.push_back(1);
	l.push_back(2);
	l.push_back(3);
	l.push_back(4);
	l.push_back(5);

	for (int c : l)
	{
		std::cout << c << ' ';
	}
	std::cout << std::endl;

	du::list<int>::iterator it = l.begin();
	while (it != l.end())
	{
		std::cout << *it++ << ' ';
	}
}

int main() {
	test1();
	return 0;
}